# $Id: PKGBUILD 175085 2013-01-13 09:47:49Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=xorg-xedit
pkgver=1.2.1
pkgrel=1
pkgdesc="Simple text editor for X"
arch=('i686' 'x86_64')
url="http://xorg.freedesktop.org/"
license=('custom')
depends=('libxaw' 'libxmu' 'libxt' 'libx11')
makedepends=('xorg-util-macros')
source=(http://xorg.freedesktop.org/archive/individual/app/xedit-${pkgver}.tar.bz2)
sha256sums=('89b0b0f86b0b5ab2898ee669d394b28c6ac5a9a53f8fae1726ba5664cd36c98e')

build() {
  cd "${srcdir}/xedit-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/xedit-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
